<div id="ProductShow">
  <div id="ProductShowImg"><%=image_tag @product.img_url,:width=>"100"%></div>
  <div id="ProductShowInfo">
    <div class="item"><strong><span class="titleText"><%=h @product.title %></span></strong></div>
    
    <div class="item">价格：<%=h @product.price %></div>
    <div class="item">数量：<%=h @product.amount %></div>
    
    
    <div class="item"><%= button_to "放入购物车",{:action=>"add_to_cart",:id=>@product.id} %></div>
  </div>
<DIV class=HackBox></DIV>
  <div id="ProductShowDes">
     <div class="item">商品描述</div>
     <div class="description"><%=h @product.description %></div> 
  </div>

</div>
<div style="text-align:center"><h3>用户评论</h3></div>
<DIV class=HackBox></DIV>
<%index=1%>
<%for comment in @comments%>
<div class=common>
  <div class=top>
    <div class=index><%=index%>楼</div>
    <div class=username>用户：<%=comment.user.nick_name%></div>
    <div class=range>评分：<%=comment.range%></div>
  </div>  
  <div class=content><%=comment.content%></div>
</div>
<DIV class=HackBox></DIV>
<% index+=1 %>
<%end%>


